package thread;


class My_Thread extends Thread{
    //创建的新线程需要执行的操作
    @Override
    public void run() {
        while(true){
            System.out.println("hello,Thread");
        }
    }
}


public class Demo12 {

    public static void main(String[] args) {
        My_Thread t= new My_Thread();
        t.start();

        while(true){
            System.out.println("hello,main");
        }

    }

}
